#include <BFSTree.h>

// default constructor
BFSTree_t::BFSTree_t() {
  data = 0;
  children = new std::vector < BFSTree_t * >();
}

BFSTree_t::BFSTree_t(int _data) {
  data = _data;
  children = new std::vector < BFSTree_t * >();
}

BFSTree_t::~BFSTree_t() {
  delete children;
}

std::vector < BFSTree_t * >::iterator BFSTree_t::begin() {
  return children->begin();
}

int BFSTree_t::AddChild(int _data) {
  BFSTree_t * mychild = new BFSTree_t(_data);
  children->push_back(mychild);
}

void BFSTree_t::setData(int _data) {
  data = _data;
}
/***** END of BFSTree *******/
